<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./common/accountLayout.xhtml">

            <ui:define name="title">
                authentification
            </ui:define>

            <ui:define name="top">
                <h:outputText value="veuillez vous authentifier"/>
            </ui:define>

            <ui:define name="content">
            <h:form>
            <h:outputLabel value="identifiant :"/><!--label-->
            <h:inputText required="true" id="memberid" value="#{memberModel.login}"/><!--valeur requise - composant lié à la valeur login-->
            <h:outputLabel value="mot de passe :"/>
            <h:inputSecret required="true" id="pwdid" binding="#{memberModel.password}"/><!--composant lié au composant de type UIInput déclaré dans le bean JSF managé-->
            <h:commandButton value="envoyer" action="#{memberModel.authenticate}"/>
            <h:message for="memberid"/><f:verbatim>&nbsp;&nbsp;</f:verbatim> <h:message for="pwdid"/>
          
           </h:form>
         </ui:define>

        </ui:composition>

    </body>
</html>
